#ifndef DISC_V812_H
#define DISC_V812_H

#include "CaenDiscriminator.h"
#include "VmeModule.h"


class Disc_V812 : public CaenDiscriminator, public VmeModule {

  public:
    Disc_V812(int handle, unsigned int address) : VmeModule(handle, address) {};
    virtual ~Disc_V812() {};

    virtual void SetThreshold(int channel, uint8_t value);
    virtual void SetInhibitPattern(uint16_t pattern);
    virtual void SetOutputWidth(int chrange, uint8_t value);
    virtual void SetDeadTime(int chrange, uint8_t value);
    virtual void SetMajorityThreshold(uint8_t);
    virtual void GenTestPulse();
	
	virtual uint16_t GetManufacturerNumber();
	virtual uint16_t GetModuleType();
	virtual uint16_t GetModuleVersion();
	virtual uint16_t GetSerialNumber();
	virtual uint16_t GetFixedCode();
};

#endif
